Assign a keyboard shortcut - An example

Step 1 - Display the Customize dialog
Choose View > Customize to display the Customize dialog.
Step 2 - Choose the Keyboard tab
Choose the Keyboard tab.
Step 3 - Choose the File menu
From the Category drop-down, choose File (for the File menu).
Step 4 - Choose the General Program Preferences command
From the Commands section, choose the General Program Preferences command.
Step 5 - Enter keyboard shortcut
Click inside the Press New Shortcut Key field, hold down the Alt key and press P. It should display in the field as "Alt+P."
Step 6 - Click Assign
Click Assign to assign this shortcut to that command.
Step 7 - Close the dialog
Click Close to close the Customize dialog.
Step 8 - Press Alt + P
Try out your new shortcut by pressing Alt + P. The General Program Preferences dialog appears. Note also that this shortcut appears when you choose File > Preferences.
Notes and Tips:
If a particular shortcut is already assigned to another command, this will be reflected directly below the Press New Shortcut Key field.
To remove a shortcut that has already been assigned, select the item in the commands list, select the keys in the Current Keys field, and then click Remove. If you've entered a key assignment but have NOT yet clicked Assign, simply close the Customize dialog to cancel the assignment.
To reset keyboard shortcuts to their defaults, click Reset All and then click Yes to confirm the action.

Learn More:
Create a custom toolbar
Separate a tool from its flyout